package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ErpInboundOrderMapper;
import com.ruoyi.domain.ErpInboundOrder;
import com.ruoyi.service.IErpInboundOrderService;

/**
 * 入库单管理Service业务层处理
 * 
 * @author zhp
 * @date 2025-08-19
 */
@Service
public class ErpInboundOrderServiceImpl implements IErpInboundOrderService 
{
    @Autowired
    private ErpInboundOrderMapper erpInboundOrderMapper;

    /**
     * 查询入库单管理
     * 
     * @param id 入库单管理主键
     * @return 入库单管理
     */
    @Override
    public ErpInboundOrder selectErpInboundOrderById(Long id)
    {
        return erpInboundOrderMapper.selectErpInboundOrderById(id);
    }

    /**
     * 查询入库单管理列表
     * 
     * @param erpInboundOrder 入库单管理
     * @return 入库单管理
     */
    @Override
    public List<ErpInboundOrder> selectErpInboundOrderList(ErpInboundOrder erpInboundOrder)
    {
        return erpInboundOrderMapper.selectErpInboundOrderList(erpInboundOrder);
    }

    /**
     * 新增入库单管理
     * 
     * @param erpInboundOrder 入库单管理
     * @return 结果
     */
    @Override
    public int insertErpInboundOrder(ErpInboundOrder erpInboundOrder)
    {
        return erpInboundOrderMapper.insertErpInboundOrder(erpInboundOrder);
    }

    /**
     * 修改入库单管理
     * 
     * @param erpInboundOrder 入库单管理
     * @return 结果
     */
    @Override
    public int updateErpInboundOrder(ErpInboundOrder erpInboundOrder)
    {
        return erpInboundOrderMapper.updateErpInboundOrder(erpInboundOrder);
    }

    /**
     * 批量删除入库单管理
     * 
     * @param ids 需要删除的入库单管理主键
     * @return 结果
     */
    @Override
    public int deleteErpInboundOrderByIds(Long[] ids)
    {
        return erpInboundOrderMapper.deleteErpInboundOrderByIds(ids);
    }

    /**
     * 删除入库单管理信息
     * 
     * @param id 入库单管理主键
     * @return 结果
     */
    @Override
    public int deleteErpInboundOrderById(Long id)
    {
        return erpInboundOrderMapper.deleteErpInboundOrderById(id);
    }
}
